package hfjava;

import java.util.Scanner;

public class Triangle_8 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int num=input.nextInt();
        for (int i = 1; i < num; i++) {
            for (int j = 1; j <num-i ; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j < i; j++) {
                System.out.print(i+" ");
            }
            System.out.print("\n");
        }
    }
}
